package ken.app.bean;

import java.io.Serializable;
import java.sql.Timestamp;

public class TreeAllBean
{ 
//  /* News的四個變數 */
//  private String _title="";
//  private String _link="";
//  private String _desc="";
//  private String _date="";
//  private String _img="";
//  private boolean read = false;
	
	private boolean fruit_get = false;
	private int tree_type= -1;
	private int tree_id= -1;
	private int total_score= -1;
	private int today_score= -1;
	private int today_get= -1;
	private int fruit_start;
	private int fruit_end;
	private int lastmodify;
	private String pic1="";
	private String pic2="";
	private String tree_name="";
	private String today_hour_min="";
	private long today_time= 0;
	
	public TreeAllBean(int treetype, int treeid, int totalscore, int todayscore, String treename, boolean fruitget,
					int fruitstart, int fruitend, String todayhourmin, long todaytime){
		tree_type = treetype;
		tree_id = treeid;
		total_score = totalscore;
		today_score = todayscore;
		tree_name = treename;
		fruit_get = fruitget;
		fruit_start = fruitstart;
		fruit_end = fruitend;
		today_hour_min = todayhourmin;
		today_time = todaytime;
	}
	
	public TreeAllBean(){
		
	}
  
//  @Override
//	public boolean equals(Object o) {
//	  boolean result = false;
//		if (o instanceof treeInfo) 
//		{
//			treeInfo taget = (treeInfo)o;
//			if (this.getLink().equals(taget.getLink()))	
//			{ result = true; }
//			else
//			{ result = false; }
//		}
//			return result; 
//	}
	
	public void setTreeType(int treetype){
		tree_type = treetype;
	}
	
	public int getTreeType(){
		return tree_type;
	}
	
	public void setTreeId(int treeid){
		tree_id = treeid;
	}
	
	public int getTreeId(){
		return tree_id;
	}
	
	public void setTotalScore(int totalscore){
		total_score = totalscore;
	}
	
	public int getTotalScore(){
		return total_score;
	}
	
	public void setTodayScore(int todayscore){
		today_score = todayscore;
	}
	
	public int getTodayScore(){
		return today_score;
	}
	
	public void setTodayGet(int todayget){
		today_get = todayget;
	}
	
	public int getTodayGet(){
		return today_get;
	}
	
	public void setTreeName(String treename){
		tree_name = treename;
	}
	
	public String getTreeName(){
		return tree_name;
	}
	
	public void setFruitGet(boolean fruitget){
		fruit_get = fruitget;
	}
	
	public boolean getFruitGet(){
		return fruit_get;
	}
	
	public void setFruitStart(int fruitstart){
		fruit_start = fruitstart;
	}
	
	public int getFruitStart(){
		return fruit_start;
	}
	
	public void setFruitEnd(int fruitend){
		fruit_end = fruitend;
	}
	
	public int getFruitEnd(){
		return fruit_end;
	}
	
	public void setLastmodify(int lastmodify){
		this.lastmodify = lastmodify;
	}
	
	public int getLastmodify(){
		return this.lastmodify;
	}
	
	public void setPic1(String pic1){
		this.pic1 = pic1;
	}
	
	public String getPic1(){
		return this.pic1;
	}
	
	public void setPic2(String pic2){
		this.pic2 = pic2;
	}
	
	public String getPic2(){
		return this.pic2;
	}
	
	public void setTodayhourmin(String todayhourmin){
		this.today_hour_min = todayhourmin;
	}
	
	public String getTodayhourmin(){
		return this.today_hour_min;
	}
	
	public long getTodayTime(){
		return today_time;
	}
	
	public void setTodayTime(long todaytime){
		today_time = todaytime;
	}
}